﻿using ArtMath.Component.Angle;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ArtMath.Data;
using System.ComponentModel;
using ArtMath.Component.Point;

namespace ArtMath.Component.Line
{
    /// <summary>
    /// 角终边射线
    /// </summary>
    [Serializable]
    public class AngleTerminalRay : RayBase
    {
        AngleBase angle;
        public AngleTerminalRay(SketchPad pad, string name, AngleBase angle) : base(pad, name, ToolTypeName.jzbsx, false)
        {
            this.angle = angle;
            InPoints = new PointBase[1];
        }
        public override double NewDirectedAngle
        {
            get
            {
                return angle.InitialEdge.ArrivalAngle + angle.NewAngle;
            }
        }
        [Browsable(false)]
        public override AngleStringX RotateAngle
        {
            get
            {
                return base.RotateAngle;
            }

            set
            {
                base.RotateAngle = value;
            }
        }
        [Browsable(false)]
        public override RPointS RotateCenter
        {
            get
            {
                return base.RotateCenter;
            }

            set
            {
                base.RotateCenter = value;
            }
        }
    }
}
